package atm;

import javax.swing.*;
import java.awt.*;

public class TransferPanel extends JPanel {
    private ImageIcon sure = new ImageIcon("images/buttonSure.jpg");
    private JLabel transMoney = new JLabel("转移金额：");
    private JLabel transUser = new JLabel("转移金账户：");

    private JTextField moneyField = new JTextField();
    private JTextField userField = new JTextField();
    private JButton sureBtn = new JButton(sure);
    private Font font = new Font("黑体", Font.BOLD, 20);

    public TransferPanel() {
        this.setLayout(null);
        this.add(sureBtn);
        this.add(transMoney);
        this.add(moneyField);
        this.add(transUser);
        this.add(userField);
        transMoney.setBounds(300, 200, 120, 50);
        transUser.setBounds(300, 260, 140, 50);
        sureBtn.setBounds(400, 400, 140, 50);
        moneyField.setBounds(400, 200, 140, 50);
        userField.setBounds(400, 260, 140, 50);
        transMoney.setFont(font);
        transUser.setFont(font);


        this.setOpaque(false);


    }
}
